package com.wty.cmims.service;

import com.wty.cmims.pojo.ResponseResult;
import com.wty.cmims.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
* @author wty
* @description 针对表【user】的数据库操作Service
* @createDate 2024-11-04 21:23:30
*/
public interface UserService extends IService<User> {

    ResponseResult<Map<String, Object>> userLogin(String account, String password, Integer role);

    ResponseResult<Map<String, Object>> adminInfoUpdate(Map<String,Object> paramsMap);

    ResponseResult<Void> resetPassword(Integer userId);

    ResponseResult<Void> deleteUser(Integer userId);

    ResponseResult<Void> updatePassword(String account, String oldPassword, String newPassword);

    ResponseResult<Void> userRegister(String name, String account, String phone, Integer title_id, Integer department_id, Integer institution_id, Integer fee, Integer role);

    ResponseResult<Map<String, Object>> findAdmin(Map<String, Object> paramsMap);

    ResponseResult<Map<String, Object>> updateAdmin(Map<String, Object> paramsMap);

    ResponseResult<Map<String, Object>> findDoctorAndAdmin(Map<String, Object> paramsMap);

    ResponseResult<Void> updateRole(Map<String,Object> paramsMap);
}
